package com.skytech.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.skytech.Entity.Dept;
import com.skytech.mapper.DeptMapper;
import com.skytech.service.DeptService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class DeptServiceImpl implements DeptService {


    @Resource
    private DeptMapper deptMapper;

    @Override
    public boolean addDept(JSONObject param) {
        return deptMapper.addDept(param);
    }

    @Override
    public JSONObject findById(JSONObject param) {
        return deptMapper.findById(param);
    }

    @Override
    public List<JSONObject> findAll() {
        return deptMapper.findAll();
    }
}
